// ListManager.h: interface for the CListManager class.
//
//////////////////////////////////////////////////////////////////////

#ifndef __LISTMANAGER_H__
#define __LISTMANAGER_H__

class CLister  
{
	typedef struct st_listnode
	{
		void *pValue;
		struct st_listnode *pNext;
	}LISTNODE,*LPLISTNODE;

private:
	CRITICAL_SECTION	m_csLock;
	LPLISTNODE			m_FreeList;
	LPLISTNODE			m_ValueList;
public:
	CLister(int iCount = 20);
	virtual ~CLister();
public:
	void Push(void *pValue);
	void *Pop();

};

#endif // !defined(AFX_LISTMANAGER_H__371398E3_5867_443E_8AE9_FEB8F602F94A__INCLUDED_)
